using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient; 

public partial class MasterPage : System.Web.UI.MasterPage
{
   
    protected void Page_Load(object sender, EventArgs e)
    {
        DateDisplay.Text = DateTime.Now.ToString("dddd, MMMM dd");
    

    }

   

    


    //protected bool isValidPassword(string connectionString, string name, string pass)
    //{
    //    bool result = false;
    //    string queryString = "SELECT [Password] FROM dbo.Users WHERE [UserName] = '" + name + "';";

    //    using (SqlConnection connection = new SqlConnection(connectionString))
    //    {
    //        SqlCommand command = new SqlCommand(queryString, connection);
    //        try
    //        {
    //            connection.Open();
    //        }
    //        catch (System.Data.Common.DbException e)
    //        {
    //            string error = "Connection Error: " + e.Message;
    //            error = error.Replace("\\", "-");
    //            Response.Write("<script language=javascript>alert(\"" + error + "\")</script>");
    //            return false;
    //        }

    //        SqlDataReader reader;
    //        try
    //        {
    //            reader = command.ExecuteReader();
    //        }
    //        catch (System.Data.Common.DbException e)
    //        {
    //            string error = "Connection Error: " + e.Message;
    //            Response.Write("<script language=javascript>alert(\"" + @error + "\")</script>");
    //            return false;
    //        }

    //        if (reader.HasRows)
    //        {
    //            reader.Read();
    //            string dbpass = String.Format("{0}", reader[0]);
    //            if (dbpass == pass)
    //                result = true;
    //        }

    //        // Call Close when done reading.
    //        reader.Close();
    //        reader.Dispose();
    //        connection.Close();
    //        connection.Dispose();

    //        return result;
    //    }
    //}
}
